package com.pkx.cloud.fse7.dms.realtimestate.repo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pkx.cloud.fse7.dms.realtimestate.entity.RealTimeState;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Mapper 接口
 *
 * @author ly
 * @since 2020-10-14
 */
public interface RealTimeStateMapper extends BaseMapper<RealTimeState> {
    Page<Map<String, Object>> queryPage(@Param(value = "page") Page page, @Param(value = "areaList") Set<String> areaList);

    Set<String> quertAreas(@Param(value = "areaId") String areaId);

    List<Map<String, Object>> queryPage(@Param(value = "areaList") Set<String> areaList);

    List<Map<String, Object>> readList(@Param(value = "areaList") Set<String> areaList);

    Page<List<Map<String, Object>>> grantPage(@Param(value = "page") Page page, @Param(value = "devNo") Integer devNo, @Param(value = "doorNo") Integer doorNo);

    List<Map<String, Object>> grantPage(@Param(value = "devNo") Integer devNo, @Param(value = "doorNo") Integer doorNo);

    Page<List<Map<String, Object>>> deviceList(@Param(value = "page") Page page, @Param(value = "list") Set<String> list);

    Map<String, Object> statistical(@Param(value = "areaList") Set<String> areaList);

    Page<List<Map<String, Object>>> offline(@Param(value = "page") Page page, @Param(value = "areaList") Set<String> strings);
}
